import { defineConfig } from "vite";
import path from "path";
import react from "@vitejs/plugin-react-swc";
import { vitePluginForArco } from "@arco-plugins/vite-react";
function pathResolve(dir) {
    return path.resolve(__dirname, dir);
}
// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react(), vitePluginForArco({ style: "css" })],
    resolve: {
        alias: {
            "@": pathResolve("src")
        }
    },
    server: {
        // host: "0.0.0.0",
        port: "5173",
        proxy: {
            "/api": {
                target: "http://localhost:2081/api",
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/api/, "")
            }
        }
    },
    assetsInclude: ["**/*.liquid"]
});
